//
//  BaseCollectionHeaderFooterView.m
//  MZBasic
//
//  Created by Sings on 2019/9/7.
//

#import "BaseCollectionHeaderFooterView.h"

@implementation BaseCollectionHeaderFooterView

+ (NSString *) CollectionHeaderFooterReuseIdentifier {
    return [NSString stringWithFormat:@"%@ID",NSStringFromClass(self)];
}


- (void)setViewModel:(BaseViewModel *)viewModel {
    if (_viewModel) {
        _viewModel.refresh = nil;
    }
    _viewModel = viewModel;
    [self showView];
    BaseWeakObj(self)
    _viewModel.refresh = ^{
        [weakself showView];
    };
}

- (void)showView {
}

@end
